<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div {
				background-color: red;
				width: 100px;
				height: 100px;
			}
		</style>
	</head>
	<body>
		<div id="">

		</div>
		<script type="text/javascript">
			var div = document.querySelector('div');
			div.addEventListener('click', function() {
				alert('dlasjflsdkjf');
			})
		</script>
	</body>
</html>
